﻿@model IEnumerable<Project.Models.ItemStock>

@{
    ViewBag.Title = "Cikktörzs";
}

<h2>Cikktörzs</h2>

<p>
    @Html.ActionLink("Új cikk", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.ItemName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ItemUnit)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ItemWidth)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ItemHeight)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ItemWeight)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ItemPrice)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ItemCurrency)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ItemTransport)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ItemIsFinished)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ItemNote)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ItemCategory.ItemCategoryName)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ItemName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemUnit)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemWidth)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemHeight)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemWeight)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemPrice)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemCurrency)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemTransport)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemIsFinished)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemNote)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemCategory.ItemCategoryName)
        </td>
        <td>
            @Html.ActionLink("Szerkesztés", "Edit", new { id=item.Item_Id }) <br/>
            @Html.ActionLink("Részletek", "Details", new { id=item.Item_Id }) <br />
            @Html.ActionLink("Törlés", "Delete", new { id=item.Item_Id })
        </td>
    </tr>
}

</table>
